<style>
    .center {
        text-align: center;
    }

    .left {
        text-align: left;
    }

    .right {
        text-align: right;
    }

    .row {
        font-size: 1.5rem;
    }
</style>
<div class="row">
    <div class="col-xs-10">
        <label class="col-xs-2 right">
            快递公司：
        </label>
        <div class="col-xs-10 left">
            <input type="text" class="input" id="send_company">
        </div>
    </div>
    <div class="col-xs-10" style="margin-top: 15px;">
        <label class="col-xs-2 right">
            快递单号：
        </label>
        <div class="col-xs-10 left">
            <input type="text" class="input" id="send_sn">
        </div>
    </div>
</div>
<hr>
<div class="row">
    <div class="col-xs-10">
        <label class="col-xs-2 right">
        </label>
        <div class="col-xs-10 left">
            <a href="Javascript:;" class="btn btn-primary " onclick="order_send('{$order_id}')">确认发货</a>
        </div>
    </div>
</div>
<script>
    function order_send(order_id) {
        let send_sn = $("#send_sn").val(), send_company=$("#send_company").val();
        var index = layer.confirm("确认发货？", function () {
            $.post("{:url('send_order')}", {order_id:order_id, send_sn:send_sn, send_company:send_company}, function (rs) {
                var res = $.parseJSON(rs);
                layer.close(index);
                layer.msg(res.info);
                if(res.status == 0){
                    parent.location.reload();
                }
            })
        })
        
    }


</script>





